//
//  AppController.m
//  <10>Nib和NSWindowController
//
//  Created by chen on 16/9/9.
//  Copyright © 2016年 tyrad. All rights reserved.
//

#import "AppController.h"
#import "PreferenceController.h"

@implementation AppController


- (IBAction)showPreferencePanel:(id)sender{
    
    if (_preferenceController == nil) {
        _preferenceController = [[PreferenceController alloc]init];
    }
    
    NSLog(@"window = %@",_preferenceController);
    
    
    [_preferenceController showWindow:self];
    
}


@end
